home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Przegladarki internetowe / Mozilla Seamonkey 1.0.5 pl / seamonkey-1.0.5.pl-PL.win32.installer.exe / BROWSER.XPI / bin / chrome / toolkit.jar / content / global / console.xul < prev    next >
Encoding:
Extensible Markup Language  |  2006-03-17  |  7.2 KB  |  179 lines

  1. <?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.  
  6.  The contents of this file are subject to the Mozilla Public License Version
  7.  1.1 (the "License"); you may not use this file except in compliance with
  8.  the License. You may obtain a copy of the License at
  9.  http://www.mozilla.org/MPL/
  10.  
  11.  Software distributed under the License is distributed on an "AS IS" basis,
  12.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.  for the specific language governing rights and limitations under the
  14.  License.
  15.  
  16.  The Original Code is Mozilla Communicator client code, released
  17.  March 31, 1998.
  18.  
  19.  The Initial Developer of the Original Code is
  20.  Netscape Communications Corporation.
  21.  Portions created by the Initial Developer are Copyright (C) 1998-1999
  22.  the Initial Developer. All Rights Reserved.
  23.  
  24.  Contributor(s):
  25.    Joe Hewitt <hewitt@netscape.com>
  26.  
  27.  Alternatively, the contents of this file may be used under the terms of
  28.  either of the GNU General Public License Version 2 or later (the "GPL"),
  29.  or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.  in which case the provisions of the GPL or the LGPL are applicable instead
  31.  of those above. If you wish to allow use of your version of this file only
  32.  under the terms of either the GPL or the LGPL, and not to allow others to
  33.  use your version of this file under the terms of the MPL, indicate your
  34.  decision by deleting the provisions above and replace them with the notice
  35.  and other provisions required by the GPL or the LGPL. If you do not delete
  36.  the provisions above, a recipient may use your version of this file under
  37.  the terms of any one of the MPL, the GPL or the LGPL.
  38.  
  39.  ***** END LICENSE BLOCK ***** -->
  40.  
  41. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 
  42. <?xml-stylesheet href="chrome://global/skin/console.css" type="text/css"?> 
  43. <?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?> 
  44.  
  45. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  46. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  47. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  48.  
  49. <!DOCTYPE window [
  50.   <!ENTITY % console SYSTEM "chrome://global/locale/console.dtd"> %console;
  51.   <!ENTITY % util SYSTEM "chrome://communicator/locale/utilityOverlay.dtd"> %util;
  52. ]>
  53.  
  54. <window id="jsconsoleWindow"
  55.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  56.         title="&console.title;"
  57.         windowtype="global:console"
  58.         width="640" height="480"
  59.         screenX="10" screenY="10"
  60.         persist="screenX screenY width height"> 
  61.  
  62. <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  63. <script type="application/x-javascript" src="chrome://global/content/console.js"/>
  64.  
  65. <stringbundle id="ConsoleBundle" src="chrome://global/locale/console.properties"/>
  66. <commandset id="tasksCommands"/>
  67. <command id="cmd_copy" oncommand="copyItemToClipboard()"/>
  68. <command id="cmd_close" oncommand="window.close()"/>
  69. <command id="cmd_quit"/>
  70.  
  71.   <broadcaster id="Console:clear" label="&clear.label;" 
  72.                accesskey="&clear.accesskey;" 
  73.                oncommand="clearConsole();"/>
  74.   
  75.   <broadcaster id="Console:sortAscend" label="&sortFirst.label;" 
  76.                accesskey="&sortFirst.accesskey;"
  77.                oncommand="changeSortOrder('forward');"/>
  78.   <broadcaster id="Console:sortDescend" label="&sortLast.label;"
  79.                accesskey="&sortLast.accesskey;"
  80.                oncommand="changeSortOrder('reverse');"/>
  81.  
  82.   <broadcaster id="Console:toggleToolbarMode" label="&toolbarMode.label;" 
  83.                oncommand="toggleToolbar(this);" checked="true" 
  84.                _toolbar="ToolbarMode"/>
  85.   <broadcaster id="Console:toggleToolbarEval" label="&toolbarEval.label;"
  86.                oncommand="toggleToolbar(this);" checked="true" 
  87.                _toolbar="ToolbarEval"/>
  88.  
  89. <broadcasterset id="ModeBroadcasters">
  90.   <broadcaster id="Console:modeAll" label="&all.label;" 
  91.                accesskey="&all.accesskey;" 
  92.                oncommand="changeMode('All');"/>
  93.   <broadcaster id="Console:modeErrors" label="&errors.label;"
  94.                accesskey="&errors.accesskey;"
  95.                oncommand="changeMode('Errors');"/>
  96.   <broadcaster id="Console:modeWarnings" label="&warnings.label;"
  97.                accesskey="&warnings.accesskey;"
  98.                oncommand="changeMode('Warnings');"/>
  99.   <broadcaster id="Console:modeMessages" label="&messages.label;"
  100.                accesskey="&messages.accesskey;"
  101.                oncommand="changeMode('Messages');"/>
  102. </broadcasterset>
  103.  
  104. <keyset id="tasksKeys">
  105.   <key id="key_copy"/>
  106.   <key id="key_close"/>
  107.   <key id="key_quit"/>
  108. </keyset>
  109.  
  110. <popupset id="ContextMenus">
  111.   <popup id="ConsoleContext" onpopupshowing="UpdateCopyMenu()">
  112.     <menuitem type="radio" observes="Console:sortAscend"/>
  113.     <menuitem type="radio" observes="Console:sortDescend"/>
  114.     <menuseparator/>
  115.     <menuitem id="menu_copy_cm" observes="cmd_copy" label="©Cmd.label;" accesskey="©Cmd.accesskey;"/>
  116.   </popup>
  117. </popupset>
  118.   
  119. <toolbox>
  120.   <menubar id="main-menubar" class="chromeclass-menubar" grippytooltiptext="&menuBar.tooltip;">
  121.     <menu id="menu_File">
  122.       <menupopup id="menu_FilePopup">
  123.         <menuitem id="menu_close"/>
  124.       </menupopup>
  125.     </menu>
  126.  
  127.     <menu id="menu_Edit">
  128.       <menupopup onpopupshowing="UpdateCopyMenu()">
  129.         <menuitem id="menu_copy"/>
  130.       </menupopup>
  131.     </menu>
  132.   
  133.     <menu id="menu_View">
  134.       <menupopup>
  135.        <menu label="&toolbarsCmd.label;" accesskey="&toolbarsCmd.accesskey;">
  136.           <menupopup> 
  137.             <menuitem type="checkbox" observes="Console:toggleToolbarMode"/>
  138.             <menuitem type="checkbox" observes="Console:toggleToolbarEval"/>
  139.           </menupopup>
  140.         </menu>
  141.         <menuseparator/>
  142.         <menuitem type="radio" observes="Console:sortAscend"/>
  143.         <menuitem type="radio" observes="Console:sortDescend"/>
  144.       </menupopup>
  145.     </menu>
  146.   
  147.     <!-- tasks menu filled from tasksOverlay -->
  148.     <menu id="tasksMenu"/>
  149.  
  150.     <!-- window menu filled from tasksOverlay -->
  151.     <menu id="windowMenu"/>
  152.  
  153.     <!-- help menu filled from globalOverlay -->
  154.     <menu id="menu_Help"/>
  155.   </menubar>
  156.  
  157.   <toolbar class="chromeclass-toolbar" id="ToolbarMode" grippytooltiptext="&modeToolbar.tooltip;">
  158.     <toolbarbutton type="radio" group="mode" observes="Console:modeAll"/>
  159.     <toolbarbutton type="radio" group="mode" observes="Console:modeErrors"/>
  160.     <toolbarbutton type="radio" group="mode" observes="Console:modeWarnings"/>
  161.     <toolbarbutton type="radio" group="mode" observes="Console:modeMessages"/>
  162.     <toolbarseparator/>
  163.     <toolbarbutton observes="Console:clear"/>
  164.   </toolbar>
  165.   
  166.   <toolbar class="chromeclass-toolbar" id="ToolbarEval" grippytooltiptext="&entryToolbar.tooltip;">
  167.     <textbox id="TextboxEval" class="toolbar" value="" onkeypress="onEvalKeyPress(event)" flex="1"/>
  168.     <toolbarbutton id="ButtonEval" label="&evaluate.label;" oncommand="evaluateTypein()"/>
  169.   </toolbar>
  170. </toolbox>
  171.   
  172. <vbox id="ConsoleBox" class="console-box" flex="1" context="ConsoleContext" persist="sortOrder"/>
  173.  
  174. <iframe name="Evaluator" id="Evaluator" collapsed="true" src="chrome://global/content/blank.html"/>
  175.  
  176. </window>
  177.  
  178.  
  179.